﻿<UserControl x:Class="TrackMe.View.Frames.TfsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:apps="clr-namespace:TrackMe.Apps.VM;assembly=TrackMe.Apps" 
             xmlns:beh="clr-namespace:TrackMe.View.Behaviours" 
             d:DataContext="{d:DesignInstance apps:TfsVM}"
             mc:Ignorable="d" 
             d:DesignHeight="300" 
             d:DesignWidth="300">
    <DockPanel>
        <ToolBar DockPanel.Dock="Top" Height="Auto" Background="{x:Null}">
            <Label Content="_Query:" IsEnabled="True" Target="{Binding ElementName=querySelect}"/>
            <ComboBox Name="querySelect"
                ItemsSource="{Binding Queries}"
                SelectedValue="{Binding Path=SelectedQuery, Mode=TwoWay}"
                />
        </ToolBar>
        <ListBox 
            x:Name="Tasks"
            ItemsSource="{Binding Tasks}"
            ItemTemplate="{DynamicResource TaskForList}"
            beh:ListBoxBehaviourScrollSelectedIntoView.Active="True"
            SelectedValue="{Binding Path=SelectedTask, Mode=TwoWay}"
            />
    </DockPanel>
</UserControl>
